package com.yc.service;

import com.yc.Result;
import com.yc.entities.BloodSugarGluce;
import com.baomidou.mybatisplus.extension.service.IService;
import com.yc.entities.BloodSugarPatientInfo;
import com.yc.entities.custom.AppHomePageUserBean;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 血糖测量数据 服务类
 * </p>
 *
 * @author kuakha
 * @since 2021-04-07
 */
public interface BloodSugarGluceService extends IService<BloodSugarGluce> {

    Result getGluceDataByType(String userId, String attr);

    Result getGluceDataByDate(String userId, String dateType);

    int abnormalDataCount(String doctorId,String departmentId);

    List<AppHomePageUserBean> getAbnormalDataByUser(BloodSugarPatientInfo bloodSugarPatientInfo);

    List<BloodSugarGluce> getGluceDataByAttrAndNow(String attr,String userId);

    Result insertSugarDataByUser(String userId, String attr, String sugarValue, String examTime);

}
